package com.usian.api;

import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.admin.pojos.AdChannel;
import com.usian.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;

/**
 * 对外提供的暴露接口
 * */
@Api(value = "频道管理",tags = "channel",description = "频道管理API")
public interface AdChannelControllerApi {
    /*
    * 根据名称分页查询
    * @param channelDto
    * @return
    * */
    @ApiOperation("频道分页列表查询")
    public ResponseResult findByNameAndPage(ChannelDto dto);

    /*
    * 删除
    * */
    @ApiOperation("删除")
    public ResponseResult deleteById(Integer id);

    /*
    * 添加
    * */
    @ApiOperation("添加")
    public ResponseResult insert(AdChannel adChannel);

    /*
    * 修改
    * */
    @ApiOperation("修改")
    public ResponseResult update(AdChannel adChannel);

    public ResponseResult findAll();

}
